package com.linzp.bishe.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.linzp.bishe.entity.AchievementTransformation;
import com.linzp.bishe.model.AchievementTransformationModel;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.data.repository.query.Param;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author 林泽鹏
 * @since 2021-11-01
 */
@Mapper
public interface AchievementTransformationMapper extends BaseMapper<AchievementTransformation> {

	public List<AchievementTransformationModel> getByIdAchievementTransformation(@Param("id") Integer id, @Param("tableName") String tableName,
	                                                               @Param("searchContractName") String searchContractName,
	                                                                             @Param("searchAchievementName") String searchAchievementName,
	                                                                             @Param("searchStatus")String searchStatus,
	                                                                             @Param("current") Integer current,@Param("page") Integer page);

	public Integer getByIdAchievementTransformationCounters(@Param("id") Integer id, @Param("tableName") String tableName,
	                                                                             @Param("searchContractName") String searchContractName,
	                                                                             @Param("searchAchievementName") String searchAchievementName,
	                                                                             @Param("searchStatus")String searchStatus);
}
